from peewee import MySQLDatabase


def mysql_db(host, port, database, user, pwd):
    return MySQLDatabase(
        host=host,
        port=port,
        database=database,
        user=user,
        password=pwd,
        charset="utf8mb4",
    )
